package com.stephenone.zhdaily.homepage;

import com.stephenone.zhdaily.BasePresenter;
import com.stephenone.zhdaily.BaseView;
import com.stephenone.zhdaily.data.bean.News;

import java.util.List;

/**
 * Created by Administrator on 2018/1/2.
 */

public class HomepageContract {
    interface View extends BaseView<Presenter>{
//        void showTopStories(List<News.TopStory> topStories);
        void showNews(List<News> news);
        void showMoreNews(News news);
        boolean isLoading();
        void setLoading(boolean isLoading);
        void setLoadingIndicator(boolean active);
    }

    interface Presenter extends BasePresenter{
        void loadNews(boolean forceUpdate);
        void loadMore(String current);
    }
}
